package com.estate.estatemanagement.service.impl;

import com.estate.estatemanagement.dao.CommunityMapper;
import com.estate.estatemanagement.domain.Community;
import com.estate.estatemanagement.service.CommunityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;
@Service
public class CommunityServiceImpl implements CommunityService {
    @Autowired
    private CommunityMapper communityMapper;
    @Override
    public List<Community> findALL() {
       /* ArrayList<Community> list = new ArrayList<Community>();
        Community community = new Community();
        community.setId(121);
        community.setName("1234");
        list.add(community);
        return list;*/
        List<Community> communities=communityMapper.selectAll();

        return communities;

    }
}
